<extend name='layout:index'/>
<block name='content'>


<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
	<title>Document</title>
		<style>
		

		#hid{
			width:100%;
			height:100%;
			padding: 5% 0%;
			background:rgba(0,0,205,0);
			position:fixed;
			top:0;left: 0;
			z-index: 99999;
		}
		.contain{
			width: 300px;height: 247px;
			margin:23% auto;
			border-radius: 10%;
			overflow: hidden;
			background:#FF7F50; 
			position: relative;
			box-shadow: 3px 4px 9px black;
		}
		.contain div:nth-child(1){
			width:100%;
			height: 20%;
			background: #FF7F50;
			text-align: center;
			line-height: 20%;
			overflow: hidden;
			color:#000;
		}
		.contain div:nth-child(2){
			padding: 10px;
			width: 80%;
			height:65%;
			margin:0 auto;
			font-size:16px;
			background:#fff;
			text-align: center;
			line-height: 30px;
			position: relative;
			/*box-shadow: 8px 8px 9px #777 inset;*/
		}
		.contain div:nth-child(2) p{text-indent:10px;}
		.contain div:nth-child(2) div{
			width:60px;
			height:25px;
			padding: 0;margin:0;
			float:left;
			margin:20px 25px;
			text-align: center;
			line-height: 25px;
			text-decoration:none;
			color:white;
			cursor:pointer;
			box-shadow:0 0 0 0;
		}
		#btn:hover{
			box-shadow: 3px 3px 2px #000;
		}
		.contain div:nth-child(2) .sure{
			text-indent: none !important; 
			text-decoration:none;
		}
		.contain .btn:nth-child(2){width:60px;background: blue;}
		.contain .btn:nth-child(3){background: red}
	</style>
</head>
<body>
<if condition='$status.article_status eq 0'>
	<div class="hid" id="hid">
			<div class="contain">
				<div><h2>最新系统公告</h2></div>
				<div>
					<p>{$article[0]['title']}&nbsp;&nbsp;&nbsp;具体详情请点击"确定"查看详情！</p>
					<div class="btn sure" id="btn"><a href="__MODULE__/index/content" style="color:white;text-decoration: none">详情</a></div>
					<div class="btn clos" id="btn" onclick="close_tc()">取消</div>
				</div>
			</div>
	</div>
</if>

	<script>
	function close_tc(){
		var btn=document.getElementById('btn');
		var hiden=document.getElementById("hid");
		hiden.style.display="none";
	}
	</script>


    <div class="wrapper wrapper-content">
 	<div style="margin-bottom:10px; height:20px">
     <span style="float:left">当前系统时间：</span><span id="systemTime" style="color:#CCAE33;float:left"><?php echo date('Y-m-d H:i:s',time())?></span>
    </div>
  
  
    <div class="row" style="margin-left: 1px">
	

            <div class="col-sm-12">
                        <div class="row">
			            
			            <div class="col-sm-3" style="padding-left:0 ">
			                <div class="ibox float-e-margins">
			                   <div style="background-color: #3cb2ef ;color:#ffffff;text-align: center;height:90px;border-radius:2px;padding-top: 10px">现金积分<div style="border:2px solid #3cb2ef ;background-color: #ffffff;color:#3cb2ef ;height: 65px;margin-top: 15px;border-radius:2px;font-size:20px"><div style="margin-top: 15px"><strong>${$user.user_money1}</strong></div></div></div>
			                </div>
			            </div>
			            <div class="col-sm-3" style="padding-left:0">
			                <div class="ibox float-e-margins">
			                    <div style="background-color: #ffc000;color:#ffffff;text-align: center;height:90px;border-radius:2px;padding-top: 10px">认购积分<div style="border:2px solid #ffc000;background-color: #ffffff;color:#ffc000;height: 65px;margin-top: 15px;border-radius:2px;font-size:20px"><div style="margin-top: 15px"><strong>${$user.user_money3}</strong></div></div></div>
			                </div>
			            </div>
			            <div class="col-sm-3" style="padding-left:0">
			                <div class="ibox float-e-margins">
			                    <div style="background-color: #f86161;color:#ffffff;text-align: center;height:90px;border-radius:2px;padding-top: 10px">E积分<div style="border:2px solid #f86161;background-color: #ffffff;color:#f86161;height: 65px;margin-top: 15px;border-radius:2px;font-size:20px"><div style="margin-top: 15px"><strong>${$user.option_num}</strong></div></div></div>
			                </div>
			            </div>
			            
			            <div class="col-sm-3" style="padding-left:0">
			                <div class="ibox float-e-margins">
			                    <div style="background-color: #4cd127;color:#ffffff;text-align: center;height:90px;border-radius:2px;padding-top: 10px">注册积分<div style="border:2px solid #4cd127;background-color: #ffffff;color:#4cd127;height: 65px;margin-top: 15px;border-radius:2px;font-size:20px"><div style="margin-top: 15px"><strong>${$user.user_money2}</strong></div></div></div>
			                </div>
			            </div>
			            <div class="col-sm-3" style="padding-left:0;margin:15px 0px">
			                <div class="ibox float-e-margins">
			                    <div style="background-color: #B23AEE;color:#ffffff;text-align: center;height:90px;border-radius:2px;padding-top: 10px">商城积分<div style="border:2px solid #B23AEE;background-color: #ffffff;color:#B23AEE;height: 65px;margin-top: 15px;border-radius:2px;font-size:20px"><div style="margin-top: 15px"><strong>${$user.user_money4}</strong></div></div></div>
			                </div>
			            </div>
                        <div class="col-sm-3" style="padding-left:0;margin:15px 0px">
                            <div class="ibox float-e-margins">
                                <div style="background-color: #FF84FF;color:#ffffff;text-align: center;height:90px;border-radius:2px;padding-top: 10px">慈善积分<div style="border:2px solid #FF84FF;background-color: #ffffff;color:#FF84FF;height: 65px;margin-top: 15px;border-radius:2px;font-size:20px"><div style="margin-top: 15px"><strong>${$user.cishan}</strong></div></div></div>
                            </div>
                        </div>
                 
            </div>
        </div>
        </div>
       
       
            
            
       <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>公告列表</h5>
                </div>
                <div class="ibox-content">
                	<table class="table">
                   <thead>
                                <tr>
                                  <th>标题</th>
                                    <th>描述</th>
                                    <th>发布时间</th>
                                </tr>
                            </thead>
                            <tbody>
                            <foreach name='article' item='vo'>
                            	<tr>
                                    <td> <a href="__MODULE__/index/content/id/{$vo['article_id']}" target="_self">{$vo['title']}</a></td> 
                                    <td><a href="__MODULE__/index/content/id/{$vo['article_id']}" target="_self">{$vo['description']}</a></td>
                                    <td><?php echo date('Y-m-d H:i:s',$vo['add_time'])?></td>                              
							   </tr>
							</foreach>
                                                          
								
                     </tbody>
                        </table>

                </div>
                <div id="pager">
                 <span style="margin-right:10px;">总计 <b>1</b>  个记录</span>
                 <span style='float:right'>{$url}</span>
      
      </div>
            </div> 
        </div>
    </div>
</div>
    
<script>
					
				
	setInterval("systemTime()",1000);//1000为1秒钟
	function systemTime(){
	var  span = document.getElementById("systemTime");
	var  date = new Date();
	var  year = date.getFullYear();
	var  month = date.getMonth()+1;
	var  day = date.getDate();
	var hours = date.getHours();
	var minutes = date.getMinutes();
	var seconds = date.getSeconds();
	var time = year+"-"+month+"-"+day+" "+hours+":"+minutes+":"+seconds;
	span.innerHTML=time;
	
	}


</script></body>
</block>